using UnityEngine;
using System.Collections;

public class MouseTrail : MonoBehaviour {
	
	private TrailRenderer trail;
	
	// Use this for initialization
	void Start () {
		trail = (TrailRenderer) GetComponent<TrailRenderer>();
	}
	
	// Update is called once per frame
	void Update () {
		if(Mouse.isClick()){
			trail.enabled = true;
		}else trail.enabled = false;
	}
}
